import { IQuery, TableConfig } from "@/interface/IAxios";
export interface Tree {
  title: string;
  key: string;
  selected: boolean;
  children: Tree[];
}
export const table = ref<TableConfig<any>>({
  rowKey: "",
  data: [],
  loading: false
});

// 查询参数
export const query = ref<IQuery>({
  pageNum: 1,
  pageSize: 10,
  total: 0,
  roleName: ""
});

// 已选中的元素数组
export const keys = ref<string[]>([]);
export const treeData = ref<Tree[]>([]);
